if (my_money > cost_of_CD)
buy_CD();
else if (see_a_friend)
borrow_money();
else get_a_job();
Problem solving sequence:
1.Algorithm
2.Pseudo-code
3.Block diagram
4.C/C++ code
Nesting control statement
Example (Step 4)
Julien is shopping at a mall and he finds a CD that he wants to buy. if Julien doesn't have enough money, before going out to get a job, he could look for a friend to borrow the money from.